package service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import dao.NoteDao;
import dao.SchoolDao;
import entity.Comment;
import entity.Note;
import entity.School;
import service.NoteService;
import service.SchoolService;
@Service("schoolService")
public class SchoolServiceImpl implements SchoolService {
@Resource
private SchoolDao schoolDao;

@Override
public School getSchoolBySchoolId(int schoolId) {
	// TODO Auto-generated method stub
	return schoolDao.getSchoolById(schoolId);
}

@Override
public List<School> getAllSchoolInfo() {
	// TODO Auto-generated method stub
	return schoolDao.selectAll();
}

@Override
public int addNewSchool(String schoolName) {
	// TODO Auto-generated method stub
	return schoolDao.addNewSchool(schoolName);
}

@Override
public School getSchoolBySchoolName(String schoolName) {
	// TODO Auto-generated method stub
	return schoolDao.findSchoolByName(schoolName);
}
	

}
